<template>
  <div class="ranking-list-main">
    <scroll-y>
      <div class="ranking-list-block">
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
        <div class="ranking-list-item">
          <card>
            <div class="list-item-image">
              <img :src="require('../../../images/ranking/ranking_1.webp')" />
            </div>
            <div class="list-item-title">
              华为（HUAWEI）nova 5 Pro 8GB+128GB 亮黑色 全网通双4G
              前置3200万人像超级夜景4800万AI四摄麒麟980芯片手机
            </div>
            <div class="list-item-price">
              <div class="item-price">
                <i>￥</i>
                <i>2208</i>
              </div>
              <div class="item-welfare">包邮</div>
            </div>
            <div class="list-item-category">
              <div class="list-item-ranking">
                <i>入选</i>
                <i>性价比千元机榜</i>
              </div>
              <div class="list-item-arrow">
                <span class="icon iconfont">&#xe626;</span>
              </div>
            </div>
          </card>
        </div>
      </div>
    </scroll-y>
  </div>
</template>
<script>
import scrollY from '../../base/scrollY'
export default {
  components: {
    scrollY,
  },
  data() {
    return {}
  },
}
</script>
<style lang="less" scoped>
@import '../../../style/mixin';
.ranking-list-main {
  height: 100%;

  .ranking-list-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding-bottom: 50px;

    .ranking-list-item {
      width: 7.338667rem;
      height: 11.178667rem;
      margin-top: 0.426667rem;
      position: relative;
      .list-item-image {
        height: 7.338667rem;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .list-item-title {
        font-weight: @titlefontweight;
        font-size: 0.597333rem;
        .text-ellipsis();
      }
      .list-item-price {
        display: flex;
        height: 0.853333rem;
        overflow: hidden;
        margin-top: 0.426667rem;
        .item-price {
          height: 100%;
          color: #dc0b0d;
          > i {
            line-height: 0.853333rem;
          }
        }
        .item-welfare {
          height: 0.52rem;
          padding: 0 0.2rem;
          margin-left: 0.2rem;
          line-height: 0.52rem;
          color: #dc0b0d;
          border: 0.02rem solid #dc0b0d;
          border-radius: 0.24rem;
          font-size: 0.4rem;
          margin-top: 0.1rem;
        }
      }
      .list-item-category {
        background-color: #ecdcbb;
        height: 4.266667rem;
        margin-top: 0.426667rem;
        height: 1.365333rem;
        display: flex;
        color: #8a480c;
        .list-item-ranking {
          width: 80%;
          font-size: 0.554667rem;
          > i {
            line-height: 1.365333rem;
            &:nth-child(1) {
              color: #333;
              margin-left: 0.341333rem;
              margin-right: 0.170667rem;
            }
          }
        }
        .list-item-arrow {
          flex: 1;
          font-size: 0.682667rem;
          line-height: 1.28rem;
          text-align: center;
        }
      }
    }
  }
}
</style>
